package com.yunji.order.dto.cmd;

import com.yunji.order.domain.RefundDO;
import com.yunji.order.domain.RefundDetailDO;
import com.yunji.order.emuns.RefundStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;


/**
 * @author : peter-zhu
 * @date : 2025/3/8 10:46
 * @description : TODO
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class RefundCreateCommandDTO extends RefundCommandDTO {
    private List<RefundDetailDO> detailList;
    // 是否全部退款
    private boolean wholeRefund;

    public RefundCreateCommandDTO(RefundDO refundDO, RefundStatusEnum newStatus, boolean wholeRefund, List<RefundDetailDO> detailList) {
        super(refundDO, newStatus);
        this.wholeRefund = wholeRefund;
        this.detailList = detailList;
    }
}
